package com.cn.jinl.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LinePeiOutExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LinePeiOutExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeiIdIsNull() {
            addCriterion("pei_id is null");
            return (Criteria) this;
        }

        public Criteria andPeiIdIsNotNull() {
            addCriterion("pei_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeiIdEqualTo(String value) {
            addCriterion("pei_id =", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdNotEqualTo(String value) {
            addCriterion("pei_id <>", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdGreaterThan(String value) {
            addCriterion("pei_id >", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdGreaterThanOrEqualTo(String value) {
            addCriterion("pei_id >=", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdLessThan(String value) {
            addCriterion("pei_id <", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdLessThanOrEqualTo(String value) {
            addCriterion("pei_id <=", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdLike(String value) {
            addCriterion("pei_id like", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdNotLike(String value) {
            addCriterion("pei_id not like", value, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdIn(List<String> values) {
            addCriterion("pei_id in", values, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdNotIn(List<String> values) {
            addCriterion("pei_id not in", values, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdBetween(String value1, String value2) {
            addCriterion("pei_id between", value1, value2, "peiId");
            return (Criteria) this;
        }

        public Criteria andPeiIdNotBetween(String value1, String value2) {
            addCriterion("pei_id not between", value1, value2, "peiId");
            return (Criteria) this;
        }

        public Criteria andClValueIsNull() {
            addCriterion("cl_value is null");
            return (Criteria) this;
        }

        public Criteria andClValueIsNotNull() {
            addCriterion("cl_value is not null");
            return (Criteria) this;
        }

        public Criteria andClValueEqualTo(String value) {
            addCriterion("cl_value =", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueNotEqualTo(String value) {
            addCriterion("cl_value <>", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueGreaterThan(String value) {
            addCriterion("cl_value >", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueGreaterThanOrEqualTo(String value) {
            addCriterion("cl_value >=", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueLessThan(String value) {
            addCriterion("cl_value <", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueLessThanOrEqualTo(String value) {
            addCriterion("cl_value <=", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueLike(String value) {
            addCriterion("cl_value like", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueNotLike(String value) {
            addCriterion("cl_value not like", value, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueIn(List<String> values) {
            addCriterion("cl_value in", values, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueNotIn(List<String> values) {
            addCriterion("cl_value not in", values, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueBetween(String value1, String value2) {
            addCriterion("cl_value between", value1, value2, "clValue");
            return (Criteria) this;
        }

        public Criteria andClValueNotBetween(String value1, String value2) {
            addCriterion("cl_value not between", value1, value2, "clValue");
            return (Criteria) this;
        }

        public Criteria andMachineNameIsNull() {
            addCriterion("machine_name is null");
            return (Criteria) this;
        }

        public Criteria andMachineNameIsNotNull() {
            addCriterion("machine_name is not null");
            return (Criteria) this;
        }

        public Criteria andMachineNameEqualTo(String value) {
            addCriterion("machine_name =", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameNotEqualTo(String value) {
            addCriterion("machine_name <>", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameGreaterThan(String value) {
            addCriterion("machine_name >", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameGreaterThanOrEqualTo(String value) {
            addCriterion("machine_name >=", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameLessThan(String value) {
            addCriterion("machine_name <", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameLessThanOrEqualTo(String value) {
            addCriterion("machine_name <=", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameLike(String value) {
            addCriterion("machine_name like", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameNotLike(String value) {
            addCriterion("machine_name not like", value, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameIn(List<String> values) {
            addCriterion("machine_name in", values, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameNotIn(List<String> values) {
            addCriterion("machine_name not in", values, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameBetween(String value1, String value2) {
            addCriterion("machine_name between", value1, value2, "machineName");
            return (Criteria) this;
        }

        public Criteria andMachineNameNotBetween(String value1, String value2) {
            addCriterion("machine_name not between", value1, value2, "machineName");
            return (Criteria) this;
        }

        public Criteria andClUserNameIsNull() {
            addCriterion("cl_user_name is null");
            return (Criteria) this;
        }

        public Criteria andClUserNameIsNotNull() {
            addCriterion("cl_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andClUserNameEqualTo(String value) {
            addCriterion("cl_user_name =", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameNotEqualTo(String value) {
            addCriterion("cl_user_name <>", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameGreaterThan(String value) {
            addCriterion("cl_user_name >", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("cl_user_name >=", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameLessThan(String value) {
            addCriterion("cl_user_name <", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameLessThanOrEqualTo(String value) {
            addCriterion("cl_user_name <=", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameLike(String value) {
            addCriterion("cl_user_name like", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameNotLike(String value) {
            addCriterion("cl_user_name not like", value, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameIn(List<String> values) {
            addCriterion("cl_user_name in", values, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameNotIn(List<String> values) {
            addCriterion("cl_user_name not in", values, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameBetween(String value1, String value2) {
            addCriterion("cl_user_name between", value1, value2, "clUserName");
            return (Criteria) this;
        }

        public Criteria andClUserNameNotBetween(String value1, String value2) {
            addCriterion("cl_user_name not between", value1, value2, "clUserName");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}